On bunched typing

نویسنده

  • Peter W. O'Hearn
چکیده

We study a typing scheme derived from a semantic situation where a single category possesses several closed structures, corresponding to different varieties of function type. In this scheme typing contexts are trees built from two (or more) binary combining operations, or in short, bunches. Bunched typing and its logical counterpart, bunched implications, have arisen in joint work of the author and David Pym. The present paper gives a basic account of the type system, and then focusses on concrete models that illustrate how it may be understood in terms of resource access and sharing. The most basic system has two context-combining operations, and the structural rules of Weakening and Contraction are allowed for one but not the other. This system includes a multiplicative, or substructural, function type −∗ alongside the usual (additive) function type →; it is dubbed the αλ-calculus after its binders, α for the αdditive binder and λ for the multiplicative, or λinear, binder. We show that the features of this system are, in a sense, complementary to calculi based on linear logic; it is incompatible with an interpretation where a multiplicative function uses its argument once, but perfectly compatible with a reading based on sharing of resources. This sharing interpretation is derived from syntactic control of interference, a type-theoretic method of controlling sharing of storage, and we show how bunch-based management of Contraction can be used to provide a more flexible type system for interference control.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Strong Update, Disposal, and Encapsulation in Bunched Typing

We present a bunched intermediate language for strong (type-changing) update and disposal of first-order references. In contrast to other substructural type systems, the additive constructs of bunched types allow the encapsulation of state that is shared by a collection of procedures.

متن کامل

Bunched polymorphism

We describe a polymorphic, typed lambda calculus with substructural features. This calculus extends the first-order substructural lambda calculus αλ associated with bunched logic. A particular novelty of our new calculus is the substructural treatment of second-order variables. This is accomplished through the use of bunches of type variables in typing contexts. Both additive and multiplicative...

متن کامل

Amortised Resource Analysis with Separation Logic

Type-based amortised resource analysis following Hofmann and Jost—where resources are associated with individual elements of data structures and doled out to the programmer under a linear typing discipline—have been successful in providing concrete resource bounds for functional programs, with good support for inference. In this work we translate the idea of amortised resource analysis to imper...

متن کامل

Amortised Memory Analysis Using the Depth of Data Structures

The heap space analysis presented by Hofmann and Jost in their 2003POPL paper [2] finds linear space bounds for many functional programs.It uses an amortized analysis: assigning hypothetical amounts of free space(called potential) to data structures in proportion to their sizes using typeannotations. Constraints on these annotations in the type system ensurethat the tota...

متن کامل

Drosophila bunched integrates opposing DPP and EGF signals to set the operculum boundary.

The Drosophila BMP homolog DPP can function as a morphogen, inducing multiple cell fates across a developmental field. However, it is unknown how graded levels of extracellular DPP are interpreted to organize a sharp boundary between different fates. Here we show that opposing DPP and EGF signals set the boundary for an ovarian follicle cell fate. First, DPP regulates gene expression in the fol...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • J. Funct. Program.

دوره 13  شماره 

صفحات  -

تاریخ انتشار 2003